//
//  OUserInfo.h
//  OFootball
//
//  Created by 上官千城 on 15/9/22.
//  Copyright (c) 2015年 上官千城. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface OUserInfo : NSObject<NSCoding>

//账号注册信息
//编号
@property(nonatomic,assign)NSInteger number;
//用户名
@property(nonatomic,copy)NSString *userName;

//电话号码
@property(nonatomic,copy)NSString *telNumber;

//token
@property(nonatomic,copy)NSString *token;

//sign
@property(nonatomic,copy)NSString *sign;

//userId
@property(nonatomic,assign)NSInteger userId;

//sex
@property(nonatomic,assign)BOOL sex;
@property(nonatomic,copy)NSString *nickName;
@property(nonatomic, assign)NSInteger region;
@property(nonatomic, copy)NSString *icon;

+(OUserInfo*) loadInfo;

+(OUserInfo*) getInfo;

+(void) setInfo:(OUserInfo*)info;

+(BOOL) deleteInfo;

-(void) update;

@end
